#include "def.h"

#define START ((unsigned *)0x100)
#define END   ((unsigned *)0xf00)

void main(void)
{
	unsigned *p = START;
	while (p < END) {
		*p = (unsigned)p;
		p++;
	}
	p = START;
	while (p < END) {
		unsigned w = *p;
		if (w != (unsigned)p) {
			SEVENSEG = (unsigned)p;
			return;
		}
		p++;
	}
	SEVENSEG = (unsigned)p;
	//LED = -1;
}
